// samsting : this file is auto create.

#include "Bss/2014-07-14/DescribeCouponDetailResponse.h"

namespace aliyun { namespace Bss {

DescribeCouponDetailResponse::DescribeCouponDetailResponse() {
}

const std::vector<ProductCode>& DescribeCouponDetailResponse::GetProductCodes(void) const {
  return ProductCodes_;
}

const std::vector<TradeType>& DescribeCouponDetailResponse::GetTradeTypes(void) const {
  return TradeTypes_;
}

int64 DescribeCouponDetailResponse::GetCouponTemplateId(void) const {
  return CouponTemplateId_;
}

const string& DescribeCouponDetailResponse::GetTotalAmount(void) const {
  return TotalAmount_;
}

const string& DescribeCouponDetailResponse::GetBalanceAmount(void) const {
  return BalanceAmount_;
}

const string& DescribeCouponDetailResponse::GetFrozenAmount(void) const {
  return FrozenAmount_;
}

const string& DescribeCouponDetailResponse::GetExpiredAmount(void) const {
  return ExpiredAmount_;
}

const string& DescribeCouponDetailResponse::GetDeliveryTime(void) const {
  return DeliveryTime_;
}

const string& DescribeCouponDetailResponse::GetExpiredTime(void) const {
  return ExpiredTime_;
}

const string& DescribeCouponDetailResponse::GetCouponNumber(void) const {
  return CouponNumber_;
}

const string& DescribeCouponDetailResponse::GetStatus(void) const {
  return Status_;
}

const string& DescribeCouponDetailResponse::GetDescription(void) const {
  return Description_;
}

const string& DescribeCouponDetailResponse::GetCreationTime(void) const {
  return CreationTime_;
}

const string& DescribeCouponDetailResponse::GetModificationTime(void) const {
  return ModificationTime_;
}

const string& DescribeCouponDetailResponse::GetPriceLimit(void) const {
  return PriceLimit_;
}

const string& DescribeCouponDetailResponse::GetApplication(void) const {
  return Application_;
}

const char* DescribeCouponDetailResponse::BaseKey(void) {
  return "DescribeCouponDetailResponse";
}

void DescribeCouponDetailResponse::UnmarshallerMap(std::map<string, string>& response_map) {
    int ProductCodes__length = 0;
    UnmarshallerInt(ProductCodes__length, response_map, "DescribeCouponDetailResponse.ProductCodes.Length");
    if(ProductCodes__length >= 0) {
      ProductCodes_.resize(ProductCodes__length);
      for(int i1 = 0; i1 < ProductCodes__length; i1++) {
      UnmarshallerString(ProductCodes_[i1], response_map, "DescribeCouponDetailResponse.ProductCodes["+string_ValueOfInt(i1)+"]");
      } // for(int i1 = 0; i1 < ProductCodes__length; i1++) {
    } // if(ProductCodes__length >= 0) {

    int TradeTypes__length = 0;
    UnmarshallerInt(TradeTypes__length, response_map, "DescribeCouponDetailResponse.TradeTypes.Length");
    if(TradeTypes__length >= 0) {
      TradeTypes_.resize(TradeTypes__length);
      for(int i1 = 0; i1 < TradeTypes__length; i1++) {
      UnmarshallerString(TradeTypes_[i1], response_map, "DescribeCouponDetailResponse.TradeTypes["+string_ValueOfInt(i1)+"]");
      } // for(int i1 = 0; i1 < TradeTypes__length; i1++) {
    } // if(TradeTypes__length >= 0) {

  UnmarshallerInt64(CouponTemplateId_, response_map, "DescribeCouponDetailResponse.CouponTemplateId");
  UnmarshallerString(TotalAmount_, response_map, "DescribeCouponDetailResponse.TotalAmount");
  UnmarshallerString(BalanceAmount_, response_map, "DescribeCouponDetailResponse.BalanceAmount");
  UnmarshallerString(FrozenAmount_, response_map, "DescribeCouponDetailResponse.FrozenAmount");
  UnmarshallerString(ExpiredAmount_, response_map, "DescribeCouponDetailResponse.ExpiredAmount");
  UnmarshallerString(DeliveryTime_, response_map, "DescribeCouponDetailResponse.DeliveryTime");
  UnmarshallerString(ExpiredTime_, response_map, "DescribeCouponDetailResponse.ExpiredTime");
  UnmarshallerString(CouponNumber_, response_map, "DescribeCouponDetailResponse.CouponNumber");
  UnmarshallerString(Status_, response_map, "DescribeCouponDetailResponse.Status");
  UnmarshallerString(Description_, response_map, "DescribeCouponDetailResponse.Description");
  UnmarshallerString(CreationTime_, response_map, "DescribeCouponDetailResponse.CreationTime");
  UnmarshallerString(ModificationTime_, response_map, "DescribeCouponDetailResponse.ModificationTime");
  UnmarshallerString(PriceLimit_, response_map, "DescribeCouponDetailResponse.PriceLimit");
  UnmarshallerString(Application_, response_map, "DescribeCouponDetailResponse.Application");
}


} } // namespace aliyun { namespace Bss {

// end of file 
